package com.baizhi.entity;

import java.io.Serializable;
import java.util.Date;

public class OrderItem implements Serializable {
    private String orderItemId;
    private Integer count;
    private Date createDate;
    private Book book;
    private String bookId;

    private String orderId;

    public OrderItem() {
    }

    public OrderItem(String orderItemId, Integer count, Date createDate, Book book, String bookId, String orderId) {
        this.orderItemId = orderItemId;
        this.count = count;
        this.createDate = createDate;
        this.book = book;
        this.bookId = bookId;
        this.orderId = orderId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public String getOrderItemId() {
        return orderItemId;
    }

    public void setOrderItemId(String orderItemId) {
        this.orderItemId = orderItemId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }


    @Override
    public String toString() {
        return "OrderItem{" +
                "orderItemId='" + orderItemId + '\'' +
                ", count=" + count +
                ", createDate=" + createDate +
                ", book=" + book +
                ", bookId='" + bookId + '\'' +
                '}';
    }
}
